{include file="Public/header" /}

<div class="layui-layout layui-layout-admin">
	{include file="Public/left" /}

	<div class="layui-body">
	<div class="layui-tab layui-tab-brief" lay-filter="tab">
		<ul class="layui-tab-title">
			<li class="layui-this"><a href="javascript:;">{:get_forms_zd(input('typeid',0),'title')}</a></li>
			<if condition="input('typeid') neq 5 && input('typeid') neq 6 && input('typeid') neq 1">
				<li><a href="{:url('/admin/forms/InfoAdd',"typeid=".input('typeid')."")}">数据添加</a></li>
			</if>
		</ul>
		<div class="layui-tab-content">
			<div class="layui-tab-item layui-show">
				<!-- <form action="/jxadmin.php" method="get" class="layui-form">
					<div class="layui-form-item nospace">
						<div class="layui-input-inline">
							<input type="hidden" name="m" value="Admin" class="layui-input">
							<input type="hidden" name="c" value="Forms" class="layui-input">
							<input type="hidden" name="a" value="Infos" class="layui-input">
							<input type="hidden" name="typeid" value="{:input('typeid',0)}" class="layui-input">
							<input type="text" name="q" value="<?php echo input('q')?>" placeholder="请输入搜索手机号/卡号" class="layui-input">
						</div>
						<div class="layui-input-inline">
							<button class="layui-btn" lay-submit>搜索</button> -->
							<!-- <a class="layui-btn layui-btn-primary"  href="/jxadmin.php?m=Admin&c=Forms&a=Infos&typeid=2">清除搜索</a> -->
				<!-- 		</div>
					</div>
				</form> -->
				<form action="{:url('Forms/InfoDel')}" method="post" id="contentForm" name="formlist" class="layui-form" onkeydown="if(event.keyCode==13) return false;" style="width: 100%;overflow-x: auto;">
				<input type="hidden" name="typeid" value="{:input('typeid')}">
				<table class="layui-table">
					<thead>
					<tr>
						<th>选择</th>
						{volist name=":get_myfields_list(input('typeid'))" id="vs"}
							<th>{$vs.title}</th>
						{/volist}
						<th>信息修改</th>
						<th>操作</th>
					</tr>
					</thead>
					<tbody>
					{volist name="list" id="v"}
						<tr>
							<td><input type="checkbox" class="checkbox checkitem" lay-ignore name="checkid[]" value="{$v.id}"></td>
							{volist name=":get_myfields_list(input('typeid'))" id="vs"}
								<td>{$v[$vs['Field']]}</td>
							{/volist}
							<td>
								<a href='/admin/forms/InfoAdd/id/{$v.id}/typeid/{:input("typeid")}.html' class='layui-btn layui-btn-xs layui-btn' title='修改'>修改</a>
							</td>
							<td>
								<a href='/admin/forms/Del/id/{$v.id}/typeid/{:input("typeid")}.html' onclick='return confirm("您确定要删除吗？\n\n删除后不可恢复!")' class='layui-btn layui-btn-xs layui-btn-danger' title='删除'>删除</a>
							</td>
						</tr>
					{/volist}
					</tbody>
				</table>
				<button type="submit" name="act" value="alldel" onClick="return checkData();" class="layui-btn">批量删除</button>
				</form>
				<div class="page">
					{$page->render()}
				</div>
			</div>
		</div>
	</div>
</div>

	{include file="Public/footer" /}

</div>

</body>
</html>
